package com.spring.component.test.xml.test;

import java.util.List;

import com.spring.component.xml.annotation.Xml;

/**
 * @ClassName: EntityBody
 * @Description:
 * @author: liushihua
 * @date: 2019/1/8
 **/
public class EntityBody extends Body {

  /** 子类配置level注解会覆盖父类配置的level注解，所以如果子类level注解配置需要涵盖父类的属性 */
  @Xml(attrName = "entList", xmlName = "ENTLIST", isElement = true, isList = true,
      clazz = BOSecEntityBean.class)
  private List<BOSecEntityBean> entList;

  public List<BOSecEntityBean> getEntList() {
    return entList;
  }

  public void setEntList(List<BOSecEntityBean> entList) {
    this.entList = entList;
  }

  @Override
  public String toString() {
    String s = super.toString();
    return s.substring(0, s.length() - 1) + ", entList=" + entList + ")";
  }
}
